#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDebug>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);


    QString st;
    st = "1235678";
    printf("%s\n",QString::number(st.indexOf("4"),10).toStdString().data());

    const char *c = "chenyouzhong";
    printf("%s\n",c);




}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::webcyz(QString &ss)
{
    ss.append("ok");
}

void MainWindow::on_pushButton_clicked()
{

    const char *c = "chenyouzhon";
    printf("%s\n",c);


    QString str = QString("123");
    printf("%s\n",str.toLatin1().data());


    QString *s = new QString("ok");
    printf("%s\n",s->toStdString().data());

    printf("%d\n",s->contains("c"));

    QString test = QString("test");
    this->webcyz(test);
    printf("%s\n",test.toLatin1().data());


    QChar t = '1';
    const char ss = t.toLatin1();
    printf("%c\n",ss);

}

